﻿<phone:PhoneApplicationPage 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" 
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:local="clr-namespace:Starter3DGame" 
    xmlns:adRotator="clr-namespace:AdRotator;assembly=AdRotator"
    x:Class="Starter3DGame.MainPage"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="False">

     <Grid x:Name="LayoutRoot">
    	<Grid.Background>
    		<ImageBrush Stretch="Fill" ImageSource="/Images/MenuBackground.png"/>
    	</Grid.Background>
        <Grid.RowDefinitions>
        	<RowDefinition Height="Auto"/>
        	<RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle" Text="Starter 3D Game - SilverXNA version" Style="{StaticResource PhoneTextNormalStyle}" Foreground="White"/>
            <TextBlock x:Name="PageTitle" Text="Main Menu" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}" Foreground="White"/>
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
        	<Grid.RowDefinitions>
        		<RowDefinition Height="0.121*"/>
        		<RowDefinition Height="0.122*"/>
        		<RowDefinition Height="0.757*"/>
        	</Grid.RowDefinitions>
            
            <!--Create a single button to navigate to the second page which is rendered with the XNA Framework-->
            <Button x:Name="Play" Content="Play Game" Click="PlayButton_Click" VerticalAlignment="Center" HorizontalAlignment="Center" BorderBrush="{x:Null}" BorderThickness="0" Margin="0,10,0,0" Foreground="White" />
            <Button x:Name="Options" Content="Options" Click="OptionsButton_Click" VerticalAlignment="Center" HorizontalAlignment="Center" BorderBrush="{x:Null}" BorderThickness="0" Grid.Row="1" Margin="0,10,0,0" Foreground="White" />
            <Button x:Name="About" Content="About Project" Click="AboutButton_Click" VerticalAlignment="Top" HorizontalAlignment="Center" BorderBrush="{x:Null}" BorderThickness="0" Grid.Row="2" Margin="0,10,0,0" Foreground="White" />
            
        </Grid>
        <adRotator:AdRotatorControl x:Name="AdRotatorControl" Width="480" Height="80"
                    DefaultSettingsFileUri="/Starter3DGame;component/defaultAdSettings.xml"
        			SettingsUrl="http://zenithmoon.com/adrotatorsettings/defaultAdSettingsStarterWP7.xml"
                                    DefaultHouseAdBody="Starter3DGame.MyDefaultAd"
                    Grid.Row="1" VerticalAlignment="Bottom" Margin="0,-20,0,0"/>
    </Grid>

</phone:PhoneApplicationPage>